package model.pojo;

import java.io.Serializable;


public class Employee implements Serializable{
	private static final long serialVersionUID = 1L;
	private String idemployee;
	private String userName;
	private String password;
	private String fullName;
	private String position;
	private String idmanager;
	private Integer iddepartment;
	private Integer idrole;
	private String description;
	private String manager;
	private String departmentName;
	private int accountant;
	private boolean checked;	
	
	private String employeeCode;
	private int state;
	
	public Employee(String fullname){
		this.fullName=fullname;
	}

	public Employee(String id,String fullname,String us){
		this.idemployee=id;
		this.fullName=fullname;
		this.userName=us;
	}
	
	
	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public int getAccountant() {
		return accountant;
	}

	public void setAccountant(int accountant) {
		this.accountant = accountant;
	}

	public String getDepartmentName() {
		return departmentName;
	}

	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}

	public String getManager() {
		return manager;
	}

	public void setManager(String manager) {
		this.manager = manager;
	}

	public Employee() {
		this.idemployee = "";
		this.userName = "";
		this.password = "";
		this.fullName = "";
		this.position = "";
		this.idmanager = "";
		this.iddepartment = 1;
		this.idrole = 2;
		this.description = "";
	}

	public Employee(String userName, String password) {
		this.userName = userName;
		this.password = password;
	}

	public Employee(String id, int rolevalue, String user, String pass){
		this.idemployee=id;
		this.idrole=rolevalue;
		this.userName=user;
		this.password=pass;
	}
	
	public Employee(String id, String fullname, String username, int depart_id) {
		this.idemployee = id;
		this.fullName = fullname;
		this.userName = username;
		this.iddepartment = depart_id;
	}
	
	public Employee(String id, String fullname,boolean checked) {
		this.idemployee = id;
		this.fullName = fullname;
		this.checked=checked;
	}
	
	public Employee(String id, String fullname, String username, int depart_id,String position) {
		this.idemployee = id;
		this.fullName = fullname;
		this.userName = username;
		this.iddepartment = depart_id;
		this.position = position;
	}
	



	public String getIdemployee() {
		return this.idemployee;
	}

	public void setIdemployee(String idemployee) {
		this.idemployee = idemployee;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getFullName() {
		return this.fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}


	public String getPosition() {
		return this.position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getIdmanager() {
		return idmanager;
	}

	public void setIdmanager(String idmanager) {
		this.idmanager = idmanager;
	}

	public Integer getIddepartment() {
		return this.iddepartment;
	}

	public void setIddepartment(Integer iddepartment) {
		this.iddepartment = iddepartment;
	}

	public Integer getIdrole() {
		return this.idrole;
	}

	public void setIdrole(Integer idrole) {
		this.idrole = idrole;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}




	public void setEmployeeCode(String employeeCode) {
		this.employeeCode = employeeCode;
	}

	public String getEmployeeCode() {
		return employeeCode;
	}


	public void setState(int state) {
		this.state = state;
	}

	public int getState() {
		return state;
	}


	
	@Override
	public String toString() {
		return fullName.toString();
	}
}
